package cn.htsyb.synergy.maker.model;

public class MetaIndex {
    /**
     * 表类别
     */
    protected String tableCat;
    /**
     * 表模式
     */
    protected String tableSchem;
    /**
     * 表名称
     */
    protected String tableName;
    /**
     * 索引值是否可以不惟一
     */
    protected boolean nonUnique;

    /**
     * 索引类别
     */
    protected String indexQualifier;

    /**
     * 索引名称；TYPE 为 tableIndexStatistic 时索引名称为 null
     */
    protected String indexName;

    /**
     * 索引类型
     */
    protected Integer type;

    /**
     * 索引中的列序列号；TYPE 为 tableIndexStatistic 时该序列号为零
     */
    protected Integer ordinalPosition;
    /**
     * 索引对应的列名；TYPE 为 tableIndexStatistic 时列名称为 null
     */
    protected String columnName;
    /**
     * 列排序序列，”A” => 升序，”D” => 降序，如果排序序列不受支持，可能为 null；TYPE 为 tableIndexStatistic 时排序序列为 null
     */
    protected String ascOrDesc;

    /**
     * TYPE 为 tableIndexStatistic 时，它是表中的行数；否则，它是索引中惟一值的数量。
     */
    protected Long cardinality;
    /**
     * TYPE 为 tableIndexStatisic 时，它是用于表的页数，否则它是用于当前索引的页数。
     */
    protected Long pages;

    public String getTableCat() {
        return tableCat;
    }

    public void setTableCat(String tableCat) {
        this.tableCat = tableCat;
    }

    public String getTableSchem() {
        return tableSchem;
    }

    public void setTableSchem(String tableSchem) {
        this.tableSchem = tableSchem;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public boolean isNonUnique() {
        return nonUnique;
    }

    public void setNonUnique(boolean nonUnique) {
        this.nonUnique = nonUnique;
    }

    public String getIndexQualifier() {
        return indexQualifier;
    }

    public void setIndexQualifier(String indexQualifier) {
        this.indexQualifier = indexQualifier;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getOrdinalPosition() {
        return ordinalPosition;
    }

    public void setOrdinalPosition(Integer ordinalPosition) {
        this.ordinalPosition = ordinalPosition;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getAscOrDesc() {
        return ascOrDesc;
    }

    public void setAscOrDesc(String ascOrDesc) {
        this.ascOrDesc = ascOrDesc;
    }

    public Long getCardinality() {
        return cardinality;
    }

    public void setCardinality(Long cardinality) {
        this.cardinality = cardinality;
    }

    public Long getPages() {
        return pages;
    }

    public void setPages(Long pages) {
        this.pages = pages;
    }
}
